package com.kch.system.mapper;

import com.kch.system.domain.SysBusiness;
import com.kch.system.vo.BannerIndexVO;
import com.kch.system.vo.SysBusinessVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysBusinessMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysBusiness record);

    int insertSelective(SysBusiness record);

    SysBusiness selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysBusiness record);

    int updateByPrimaryKeyWithBLOBs(SysBusiness record);

    int updateByPrimaryKey(SysBusiness record);

    List<SysBusinessVO> selectListPage(SysBusiness record);

    int updateStatus(@Param("id") Integer id, @Param("status") String status);

    SysBusinessVO selectById(@Param("id") Integer id);

    List<SysBusiness> selectByCode(@Param("code") String code, @Param("tag") String tag);

    List<SysBusiness> selectOutListPage(SysBusiness business);

    List<BannerIndexVO> getDataIndexCarousel();

    List<SysBusiness> selectPageByUserId(@Param("userId") Integer userId);
}